﻿package com.lynn.salary.entity;

public class SystemArgument extends BaseEntity{

	private String code;
	private String type;
	private String name;
	private String argValue;
	private String parentCode;
	private Integer hasChild;
	private String description;

	/**
	 * 获取所有字段
	 * 
	 * @return
	 */
	public static String[] getFields() {

		return new String[] { "code", "type", "name","argValue", "parentCode", "hasChild" ,"description"};
	}

	/**
	 * 获取表名
	 * 
	 * @return
	 */
	public static String getTableName() {

		return "systemargument";
	}

	/**
	 * 获取主键名字
	 * 
	 * @return
	 */
	public static String getPkName() {

		return "code";
	}
	
	@Override
	public String pk() {
		return SystemArgument.getPkName();
	}

	public static Object[] getFk(String field) {
		if (field.equals("parentCode")) {
			return new Object[] { SystemArgument.class, "code" };
		} else
			return null;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParentCode() {
		return parentCode;
	}

	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}

	public Integer getHasChild() {
		return hasChild;
	}

	public void setHasChild(Integer hasChild) {
		this.hasChild = hasChild;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getArgValue() {
		return argValue;
	}

	public void setArgValue(String argValue) {
		this.argValue = argValue;
	}
}
